package com.sqx.modules.log.controller;

import com.alibaba.fastjson.JSONObject;
import com.sqx.common.utils.Result;
import com.sqx.modules.log.service.SysLogErrorService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * 异常日志
 *
 * @author fang
 *
 */
@RestController
@RequestMapping("sys/log/error")
@Api(tags = "异常日志")
public class SysLogErrorController {

    @Autowired
    private SysLogErrorService sysLogErrorService;

    @PostMapping("/page")
    @ApiOperation("异常日志分页")
    public Result page(@ApiParam("参数")@RequestBody JSONObject params) {
        Result result = sysLogErrorService.page(params);
        return result;
    }


}